package com.ruoyi.system.api;

import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.system.api.domain.SysMsgAndTemplate;
import com.ruoyi.system.api.factory.RemoteMsgSendFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author: cjie
 * @description: 角色服务
 * @date: 2021/6/8
 */
@FeignClient(contextId = "remoteMsgSendService", value = ServiceNameConstants.SYSTEM_SERVICE, fallbackFactory =
        RemoteMsgSendFallbackFactory.class)
public interface RemoteMsgSendService {
    @PostMapping(value = "/sysMsgSend/insert")
    R insertMsg(@RequestBody SysMsgAndTemplate sysMsgSend);

    @PostMapping(value = "/sysMsgSend/pushNotice")
    R pushNoticeMsg();
}
